package sv.gob.mh.dgii.model;

// Generated Dec 10, 2007 4:52:21 PM by Hibernate Tools 3.2.0.beta7

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * IeInformanteDoc generated by hbm2java
 */
@Entity
@Table(name = "IE_INFORMANTE_DOC", schema = "UPET", uniqueConstraints = {})
@SequenceGenerator(name="SEQ_IE_INFORMANTE_DOC" , sequenceName="SEQ_IE_INFORMANTE_DOC")
public class IeInformanteDoc implements java.io.Serializable {

	// Fields    

	/**
	 * 
	 */
	private static final long serialVersionUID = -6231147885021131588L;

	private Long iieInformanteDoc;

	private IeInformante ieInformante;

	private TbDefinicionDocExo tbDefinicionDocExo;

	private String cusuario;

	private Date fhingreso;

	private String mestado;

	private Long rowsNumber;

	private Long rowsDataNumber;

	private Long rowsErrorNumber;

	private Set<IeCoaLoadLog> ieCoaLoadLogs = new HashSet<IeCoaLoadLog>(0);

	private Set<IeCoaErrors> ieCoaErrorses = new HashSet<IeCoaErrors>(0);

	private Set<IeCoaLoadedFile> ieCoaLoadedFiles = new HashSet<IeCoaLoadedFile>(
			0);

	// Constructors

	/** default constructor */
	public IeInformanteDoc() {
	}

	/** minimal constructor */
	public IeInformanteDoc(Long iieInformanteDoc) {
		this.iieInformanteDoc = iieInformanteDoc;
	}

	/** full constructor */
	public IeInformanteDoc(Long iieInformanteDoc, IeInformante ieInformante,
			TbDefinicionDocExo tbDefinicionDocExo, String cusuario,
			Date fhingreso, String mestado, Long rowsnumber,
			Long rowsdataNumber, Long rowserrorNumber,
			Set<IeCoaLoadLog> ieCoaLoadLogs, Set<IeCoaErrors> ieCoaErrorses,
			Set<IeCoaLoadedFile> ieCoaLoadedFiles) {
		this.iieInformanteDoc = iieInformanteDoc;
		this.ieInformante = ieInformante;
		this.tbDefinicionDocExo = tbDefinicionDocExo;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
		this.mestado = mestado;
		this.rowsNumber = rowsnumber;
		this.rowsDataNumber = rowsdataNumber;
		this.rowsErrorNumber = rowserrorNumber;
		this.ieCoaLoadLogs = ieCoaLoadLogs;
		this.ieCoaErrorses = ieCoaErrorses;
		this.ieCoaLoadedFiles = ieCoaLoadedFiles;
	}

	// Property accessors
	@Id
	@Column(name = "I_IE_INFORMANTE_DOC", unique = true, nullable = false, insertable = true, updatable = true, precision = 10, scale = 0)
	@GeneratedValue(strategy=GenerationType.AUTO, generator="SEQ_IE_INFORMANTE_DOC")
	public Long getIieInformanteDoc() {
		return this.iieInformanteDoc;
	}

	public void setIieInformanteDoc(Long iieInformanteDoc) {
		this.iieInformanteDoc = iieInformanteDoc;
	}

	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumn(name = "I_IE_INFORMANTE", unique = false, nullable = true, insertable = true, updatable = true)
	public IeInformante getIeInformante() {
		return this.ieInformante;
	}

	public void setIeInformante(IeInformante ieInformante) {
		this.ieInformante = ieInformante;
	}

	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumn(name = "C_TIPO_DOC", unique = false, nullable = true, insertable = true, updatable = true)
	public TbDefinicionDocExo getTbDefinicionDocExo() {
		return this.tbDefinicionDocExo;
	}

	public void setTbDefinicionDocExo(TbDefinicionDocExo tbDefinicionDocExo) {
		this.tbDefinicionDocExo = tbDefinicionDocExo;
	}

	@Column(name = "C_USUARIO", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Column(name = "M_ESTADO", unique = false, nullable = true, insertable = true, updatable = true, length = 2)
	public String getMestado() {
		return this.mestado;
	}

	public void setMestado(String mestado) {
		this.mestado = mestado;
	}

	@Column(name = "ROWS_NUMBER", unique = false, nullable = true, insertable = true, updatable = true, precision = 9, scale = 0)
	public Long getRowsNumber() {
		return this.rowsNumber;
	}

	public void setRowsNumber(Long rowsnumber) {
		this.rowsNumber = rowsnumber;
	}

	@Column(name = "ROWS_DATA_NUMBER", unique = false, nullable = true, insertable = true, updatable = true, precision = 9, scale = 0)
	public Long getRowsDataNumber() {
		return this.rowsDataNumber;
	}

	public void setRowsDataNumber(Long rowsdataNumber) {
		this.rowsDataNumber = rowsdataNumber;
	}

	@Column(name = "ROWS_ERROR_NUMBER", unique = false, nullable = true, insertable = true, updatable = true, precision = 9, scale = 0)
	public Long getRowsErrorNumber() {
		return this.rowsErrorNumber;
	}

	public void setRowsErrorNumber(Long rowserrorNumber) {
		this.rowsErrorNumber = rowserrorNumber;
	}

	@OneToMany( fetch = FetchType.LAZY, mappedBy = "ieInformanteDoc")
	public Set<IeCoaLoadLog> getIeCoaLoadLogs() {
		return this.ieCoaLoadLogs;
	}

	public void setIeCoaLoadLogs(Set<IeCoaLoadLog> ieCoaLoadLogs) {
		this.ieCoaLoadLogs = ieCoaLoadLogs;
	}

	@OneToMany( fetch = FetchType.LAZY, mappedBy = "ieInformanteDoc")
	public Set<IeCoaErrors> getIeCoaErrorses() {
		return this.ieCoaErrorses;
	}

	public void setIeCoaErrorses(Set<IeCoaErrors> ieCoaErrorses) {
		this.ieCoaErrorses = ieCoaErrorses;
	}

	@OneToMany( fetch = FetchType.LAZY, mappedBy = "ieInformanteDoc")
	public Set<IeCoaLoadedFile> getIeCoaLoadedFiles() {
		return this.ieCoaLoadedFiles;
	}

	public void setIeCoaLoadedFiles(Set<IeCoaLoadedFile> ieCoaLoadedFiles) {
		this.ieCoaLoadedFiles = ieCoaLoadedFiles;
	}

}
